<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="index, follow, all" />
    <title>Guanguans\Coole\Routing\Route | Coole API</title>

            <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../../../css/bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="../../../css/doctum.css">
        <link rel="stylesheet" type="text/css" href="../../../fonts/doctum-font.css">
        <script src="../../../js/jquery-3.5.1.slim.min.js"></script>
        <script async defer src="../../../js/bootstrap.min.js"></script>
        <script src="../../../js/typeahead.min.js"></script>
        <script src="../../../doctum.js"></script>
        <meta name="MobileOptimized" content="width">
        <meta name="HandheldFriendly" content="true">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
        <link rel="shortcut icon" href="https://www.guanguans.cn/coole/static/favicon.png" />
    </head>

    <body id="class" data-name="class:Guanguans_Coole_Routing_Route" data-root-path="../../../">
            <div id="content">
        <div id="left-column">
                <div id="control-panel">
                    <form action="#">
                <select  class="form-control" id="version-switcher" name="version">
                                            <option value="../../../../1.x/index.html" data-version="1.x">1.x branch</option>
                                            <option value="../../../../main/index.html" data-version="main">main branch</option>
                                    </select>
            </form>
                <form id="search-form" action="../../../search.html">
            <span class="icon icon-search"></span>
            <input name="search"
                   class="typeahead form-control"
                   type="search"
                   placeholder="Search">
        </form>
    </div>

                <div id="api-tree"></div>

        </div>
        <div id="right-column">
                <nav id="site-nav" class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="../../../index.html">Coole API</a>
            </div>
            <div class="collapse navbar-collapse" id="navbar-elements">
                <ul class="nav navbar-nav">
                    <li><a href="../../../classes.html">Classes</a></li>
                    <li><a href="../../../namespaces.html">Namespaces</a></li>
                    <li><a href="../../../interfaces.html">Interfaces</a></li>
                    <li><a href="../../../traits.html">Traits</a></li>
                    <li><a href="../../../doc-index.html">Index</a></li>
                    <li><a href="../../../search.html">Search</a></li>
                </ul>
            </div>
        </div>
    </nav>

                        <div class="namespace-breadcrumbs">
            <ol class="breadcrumb">
                <li><span class="label label-default">class</span></li>
                        <li><a href="../../../Guanguans.html">Guanguans</a></li><li class="backslash">\</li><li><a href="../../../Guanguans/Coole.html">Coole</a></li><li class="backslash">\</li><li><a href="../../../Guanguans/Coole/Routing.html">Routing</a></li><li class="backslash">\</li><li>Route</li>
            </ol>
        </div>
                <div id="page-content">
    <div class="page-header">
        <h1>Route    
            </h1>
    </div>

    
    <p>        class
    <strong>Route</strong>        extends <abbr title="Symfony\Component\Routing\Route">Route</abbr>
</p>

        
    
        

            
                <h2>Traits</h2>

        
    <div class="container-fluid underlined">
                    <div class="row">
                <div class="col-md-6">
                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>    </div>
                <div class="col-md-6"></div>
            </div>
            </div>
    
    
            <h2>Properties</h2>

            <table class="table table-condensed">
                    <tr>
                <td class="type" id="property_middleware">
                                        protected                                        array
                                                                                
                                    </td>
                <td>$middleware</td>
                <td class="last"><p>中间件.</p></td>
                <td><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#property_middleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></td>
            </tr>
                    <tr>
                <td class="type" id="property_excludedMiddleware">
                                        protected                                        array
                                                                                
                                    </td>
                <td>$excludedMiddleware</td>
                <td class="last"><p>排除的中间件.</p></td>
                <td><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#property_excludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></td>
            </tr>
            </table>

    
            <h2>Methods</h2>

            <div class="container-fluid underlined">
                    <div class="row">
                <div class="col-md-2 type">
                    string
                </div>
                <div class="col-md-8">
                    <a href="#method_render">render</a>($name, $context = [])
        
                                            <p><p>{@inheritdoc}</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_render">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <abbr title="Symfony\Component\HttpFoundation\RedirectResponse">RedirectResponse</abbr>
                </div>
                <div class="col-md-8">
                    <a href="#method_redirect">redirect</a>($url, int $status = 302, array $headers = [])
        
                                            <p><p>重定 url.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_redirect">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8">
                    <a href="#method_abort">abort</a>($statusCode, string $message = &#039;&#039;, array $headers = [])
        
                                            <p><p>抛出 http 异常.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_abort">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <abbr title="Symfony\Component\HttpFoundation\StreamedResponse">StreamedResponse</abbr>
                </div>
                <div class="col-md-8">
                    <a href="#method_stream">stream</a>(null $callback = null, int $status = 200, array $headers = [])
        
                                            <p><p>返回流响应.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_stream">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <abbr title="Symfony\Component\HttpFoundation\JsonResponse">JsonResponse</abbr>
                </div>
                <div class="col-md-8">
                    <a href="#method_json">json</a>(array $data = [], int $status = 200, array $headers = [])
        
                                            <p><p>返回 json 响应.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_json">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <abbr title="Symfony\Component\HttpFoundation\BinaryFileResponse">BinaryFileResponse</abbr>
                </div>
                <div class="col-md-8">
                    <a href="#method_sendFile">sendFile</a>($file, int $status = 200, array $headers = [], null $contentDisposition = null)
        
                                            <p><p>返回二进制文件响应.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_sendFile">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    array
                </div>
                <div class="col-md-8">
                    <a href="#method_getMiddleware">getMiddleware</a>()
        
                                            <p><p>获取中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_getMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
                </div>
                <div class="col-md-8">
                    <a href="#method_setMiddleware">setMiddleware</a>($middleware)
        
                                            <p><p>设置中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_setMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
                </div>
                <div class="col-md-8">
                    <a href="#method_addMiddleware">addMiddleware</a>($middleware)
        
                                            <p><p>添加中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_addMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    array
                </div>
                <div class="col-md-8">
                    <a href="#method_getExcludedMiddleware">getExcludedMiddleware</a>()
        
                                            <p><p>获取排除的中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_getExcludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
                </div>
                <div class="col-md-8">
                    <a href="#method_withoutMiddleware">withoutMiddleware</a>($excludedMiddleware)
        
                                            <p><p>排除中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_withoutMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
                </div>
                <div class="col-md-8">
                    <a href="#method_setExcludedMiddleware">setExcludedMiddleware</a>($excludedMiddleware)
        
                                            <p><p>设置排除的中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_setExcludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
                </div>
                <div class="col-md-8">
                    <a href="#method_addExcludedMiddleware">addExcludedMiddleware</a>($excludedMiddleware)
        
                                            <p><p>添加排除的中间件.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_addExcludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8">
                    <a href="#method_addFinishHandler">addFinishHandler</a>(callable $listener, int $priority = 0)
        
                                            <p><p>添加一个 <code>KernelEvents::TERMINATE</code> 事件监听处理器.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_addFinishHandler">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8">
                    <a href="#method_setFinishHandler">setFinishHandler</a>(callable $listener, int $priority = 0)
        
                                            <p><p>设置一个 <code>KernelEvents::TERMINATE</code> 事件监听处理器.</p></p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_setFinishHandler">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8">
                    <a href="#method___construct">__construct</a>(string $path = &#039;/&#039;, array $defaults = [], array $requirements = [], array $options = [], string|null $host = &#039;&#039;, $schemes = [], $methods = [], string|null $condition = &#039;&#039;)
        
                                            <p class="no-description">No description</p>
                                    </div>
                <div class="col-md-2"></div>
            </div>
            </div>


        <h2>Details</h2>

            <div id="method-details">
                    <div class="method-item">
                    <h3 id="method_render">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_render">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 41</div>
        <code>                    string
    <strong>render</strong>($name, $context = [])
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>{@inheritdoc}</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$name</td>
                <td></td>
            </tr>
                    <tr>
                <td></td>
                <td>$context</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>string</td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_redirect">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_redirect">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 52</div>
        <code>                    <abbr title="Symfony\Component\HttpFoundation\RedirectResponse">RedirectResponse</abbr>
    <strong>redirect</strong>($url, int $status = 302, array $headers = [])
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>重定 url.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$url</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$status</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$headers</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><abbr title="Symfony\Component\HttpFoundation\RedirectResponse">RedirectResponse</abbr></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_abort">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_abort">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 63</div>
        <code>                    
    <strong>abort</strong>($statusCode, string $message = &#039;&#039;, array $headers = [])
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>抛出 http 异常.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$statusCode</td>
                <td></td>
            </tr>
                    <tr>
                <td>string</td>
                <td>$message</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$headers</td>
                <td></td>
            </tr>
            </table>

            
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_stream">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_stream">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 74</div>
        <code>                    <abbr title="Symfony\Component\HttpFoundation\StreamedResponse">StreamedResponse</abbr>
    <strong>stream</strong>(null $callback = null, int $status = 200, array $headers = [])
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>返回流响应.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>null</td>
                <td>$callback</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$status</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$headers</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><abbr title="Symfony\Component\HttpFoundation\StreamedResponse">StreamedResponse</abbr></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_json">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_json">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 85</div>
        <code>                    <abbr title="Symfony\Component\HttpFoundation\JsonResponse">JsonResponse</abbr>
    <strong>json</strong>(array $data = [], int $status = 200, array $headers = [])
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>返回 json 响应.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>array</td>
                <td>$data</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$status</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$headers</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><abbr title="Symfony\Component\HttpFoundation\JsonResponse">JsonResponse</abbr></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_sendFile">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_sendFile">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 97</div>
        <code>                    <abbr title="Symfony\Component\HttpFoundation\BinaryFileResponse">BinaryFileResponse</abbr>
    <strong>sendFile</strong>($file, int $status = 200, array $headers = [], null $contentDisposition = null)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>返回二进制文件响应.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$file</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$status</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$headers</td>
                <td></td>
            </tr>
                    <tr>
                <td>null</td>
                <td>$contentDisposition</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><abbr title="Symfony\Component\HttpFoundation\BinaryFileResponse">BinaryFileResponse</abbr></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_getMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_getMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 105</div>
        <code>                    array
    <strong>getMiddleware</strong>()
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>获取中间件.</p></p>                        
        </div>
        <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>array</td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_setMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_setMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 117</div>
        <code>                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
    <strong>setMiddleware</strong>($middleware)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>设置中间件.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$middleware</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_addMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_addMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 129</div>
        <code>                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
    <strong>addMiddleware</strong>($middleware)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>添加中间件.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$middleware</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_getExcludedMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_getExcludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 139</div>
        <code>                    array
    <strong>getExcludedMiddleware</strong>()
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>获取排除的中间件.</p></p>                        
        </div>
        <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>array</td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_withoutMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_withoutMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 151</div>
        <code>                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
    <strong>withoutMiddleware</strong>($excludedMiddleware)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>排除中间件.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$excludedMiddleware</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_setExcludedMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_setExcludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 163</div>
        <code>                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
    <strong>setExcludedMiddleware</strong>($excludedMiddleware)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>设置排除的中间件.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$excludedMiddleware</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_addExcludedMiddleware">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_addExcludedMiddleware">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 175</div>
        <code>                    <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a>
    <strong>addExcludedMiddleware</strong>($excludedMiddleware)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>添加排除的中间件.</p></p>                        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$excludedMiddleware</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../../Guanguans/Coole/Controller/HasControllerAble.html"><abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_addFinishHandler">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_addFinishHandler">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 189</div>
        <code>                    
    <strong>addFinishHandler</strong>(callable $listener, int $priority = 0)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>添加一个 <code>KernelEvents::TERMINATE</code> 事件监听处理器.</p></p>                <p><p>用来处理耗时逻辑业务</p></p>        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>callable</td>
                <td>$listener</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$priority</td>
                <td></td>
            </tr>
            </table>

            
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_setFinishHandler">
        <div class="location">in <a href="../../../Guanguans/Coole/Controller/HasControllerAble.html#method_setFinishHandler">
<abbr title="Guanguans\Coole\Controller\HasControllerAble">HasControllerAble</abbr></a> at line 203</div>
        <code>                    
    <strong>setFinishHandler</strong>(callable $listener, int $priority = 0)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p><p>设置一个 <code>KernelEvents::TERMINATE</code> 事件监听处理器.</p></p>                <p><p>用来处理耗时逻辑业务</p></p>        
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>callable</td>
                <td>$listener</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$priority</td>
                <td></td>
            </tr>
            </table>

            
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method___construct">
        <div class="location">at line 21</div>
        <code>                    
    <strong>__construct</strong>(string $path = &#039;/&#039;, array $defaults = [], array $requirements = [], array $options = [], string|null $host = &#039;&#039;, $schemes = [], $methods = [], string|null $condition = &#039;&#039;)
        </code>
    </h3>
    <div class="details">    
    
            

        <div class="method-description">
                            <p class="no-description">No description</p>
                    
        </div>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>string</td>
                <td>$path</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$defaults</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$requirements</td>
                <td></td>
            </tr>
                    <tr>
                <td>array</td>
                <td>$options</td>
                <td></td>
            </tr>
                    <tr>
                <td>string|null</td>
                <td>$host</td>
                <td></td>
            </tr>
                    <tr>
                <td></td>
                <td>$schemes</td>
                <td></td>
            </tr>
                    <tr>
                <td></td>
                <td>$methods</td>
                <td></td>
            </tr>
                    <tr>
                <td>string|null</td>
                <td>$condition</td>
                <td></td>
            </tr>
            </table>

            
            
            
            
                    </div>
    </div>

            </div>
            </div>

    
</div><div id="footer">
        Generated by <a href="https://github.com/code-lts/doctum">Doctum, a API Documentation generator and fork of Sami</a>.            <br/>You can edit the configuration <a href="https://github.com/guanguans/coole" rel="noreferrer noopener" target="_blank">on this</a> repository.</div></div>
    </div>
    </body>

</html>
